/**
 * 
 */
package com.sirenbang.easyshop.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Administrator
 *
 */
public class SysUtils {


	public static String getSrvPath(HttpServletRequest request)
	{
		String path = request.getContextPath();
		String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
		return basePath;
	}
     public static String getSysDate() {
    	 //String now=null;
    	 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    	 Date d=new Date();
    	 System.out.println(sdf.format(d));
    	 
    	 return sdf.format(d);
     }
}
